//import com.java46.bean.CarBrand;
//import com.java46.bean.Order;
//import com.java46.exception.MyException;
//import com.java46.service.CarbrandService;
//import com.java46.service.OrderService;
//import org.springframework.context.support.ClassPathXmlApplicationContext;
//
//import java.util.List;
//
//public class Entryces2 {
//    public static void main(String[] args) throws MyException {
//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
////        AdminMapper bean = context.getBean(AdminMapper.class);
////        List<Admin> admins = bean.selectAll();
////        for (Admin admin:admins) {
////            System.out.println(admin.getAdminAccount()+"----"+admin.getAdminName());
////        }
//        OrderService bean = context.getBean(OrderService.class);
//        Order order = new Order();
//        order.setOrderId(0);
//        order.setCarPlate("粤B12345");
//        order.setCustomerName("张三");
//        order.setCustomerPhone("123456789");
//        order.setListStatus(0);
//        order.setOrderStatus(0);
//        order.setOrderTime("2018-05-06");
//        order.setRepairStatus(0);
//        boolean b = bean.insertOrder(order);
//        System.out.println();
////        for (CarBrand car:carBrands) {
////            System.out.println(car.getCarBrandName()+"----"+car.getCarBrandImg());
////        }
//    }
//}
